﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Form.Master" CodeBehind="Form.aspx.cs" Inherits=" BBPA.Admin.SYS.Group_Buy.Form" ValidateRequest="false" %>

<%@ MasterType VirtualPath="~/Form.Master" %>
<%@ Register Src="~/Controls/DDL_Supplier.ascx" TagPrefix="uc1" TagName="DDL_Supplier" %>
<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
    <script src="../../js/webjs/groupbuy/form.js"></script>
    <script src="../../js/My97DatePicker/WdatePicker.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_main" runat="server">
    <div class="control-group">
        <label class="control-label">
            团购名称
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Name" runat="server" required="required" placeholder="必填"></asp:TextBox>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            团购金额
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_price" runat="server" required="required" placeholder="必填"></asp:TextBox>
        </div>
    </div>

    <div class="control-group">
        <label class="control-label">
            结束时间
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_endtime" runat="server" required="required" placeholder="必填" onclick="WdatePicker()"></asp:TextBox>
        </div>
    </div>

    <div class="control-group" id="group_Supplier" runat="server">
        <label class="control-label">
            供货商
        </label>
        <div class="controls">
            <uc1:DDL_Supplier runat="server" ID="DDL_Supplier" ClassName="span3" />
        </div>
    </div>
    <div class="control-group">
        <asp:HiddenField ID="goodarray" runat="server" />
        <table class="ListTable table table-hover">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>商品名称</th>
                    <th id="th_Supplier">原价</th>
                    <th id="th_BuyPrice">团购价</th>
                </tr>
            </thead>
            <tbody  id="goods">
               <asp:Repeater ID="Repeater1" runat="server" Visible="false">
                   <ItemTemplate>
                       <tr>
                           <td><%# Container.ItemIndex + 1%></td>
                           <td><img class="list_pic" src="<%#DataTypePlus.requestString( Eval("PicURL")).Replace("UploadFiles","UploadFiles/_thumbs") %>" data-width="<%#Eval("PicWidth") %>" data-height="<%#Eval("PicHeight") %>" onerror="$(this).hide();" /><div class="intd"><%#Eval("Number") %> <%#Eval("Name") %> <%#Eval("Code") %></div></td>
                           <td><%#StringPlus.showMoney( Eval("SellPrice"))%></td>
                           <td><%#StringPlus.showMoney( Eval("gggoodprice"))%></td>
                       </tr>

                   </ItemTemplate>

               </asp:Repeater>
           </tbody>
        </table>
    </div>
    

    <div class="control-group">
        <label class="control-label">
            介绍
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Description" runat="server" TextMode="MultiLine" Width="400" Height="200"></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
          
        </label>
        <div class="controls">
            <asp:Button ID="btnSub" runat="server" Text="提交" OnClick="btnSub_Click" CssClass="btn btn-primary"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnfq" runat="server" Text="放弃" CssClass="btn btn-primary" OnClick="btnfq_Click"/>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_bottom" runat="server">
</asp:Content>
